package org.kgduyjj.toolkit.exception;

import org.kgduyjj.toolkit.util.StringUtils;

/**
 * Toolkit的异常基类
 * 
 * @author Kgduyjj
 * @since 2020-07-30
 * @version 1.0.0-Alpha
 *
 */
public class SimpleToolkitException extends RuntimeException {

    /** */
    private static final long serialVersionUID = 1L;

    public SimpleToolkitException() {
        super();
    }

    public SimpleToolkitException(String message, Throwable cause) {
        super(message, cause);
    }

    public SimpleToolkitException(String messageTemplate, Throwable cause, Object... params) {
        super(StringUtils.format(messageTemplate, params), cause);
    }

    public SimpleToolkitException(String message) {
        super(message);
    }

    public SimpleToolkitException(String messageTemplate, Object... params) {
        super(StringUtils.format(messageTemplate, params));
    }

    public SimpleToolkitException(Throwable cause) {
        super(cause);
    }

}
